/*
 * Copyright 2005-2013 biz-united. All rights reserved.
 * Support: http://www.biz-united.com.cn
 * License: http://www.biz-united.com.cn/?page_id=5&act=3
 */
package net.biz.service.impl;

import javax.annotation.Resource;

import net.biz.dao.SpecificationDao;
import net.biz.entity.Specification;
import net.biz.service.SpecificationService;

import org.springframework.stereotype.Service;

import com.home766.dao.SchemeProductDao;

/**
 * Service - 规格
 * 
 * @author BIZ Team
 * @version 3.0
 */
@Service("specificationServiceImpl")
public class SpecificationServiceImpl extends BaseServiceImpl<Specification, Long> implements SpecificationService {

	@Resource(name = "specificationDaoImpl")
	public void setBaseDao(SpecificationDao specificationDao) {
		super.setBaseDao(specificationDao);
	}
	
	@Resource(name = "specificationDaoImpl")
	private SpecificationDao specificationDao;
	@Resource(name = "schemeProductDaoImpl")
	private SchemeProductDao schemeProductDao;
	
	/**
	 * 验证规格是否选为方案主材规格
	 * @param specification
	 * @return
	 */
	@Override
	public boolean checkInSchemeProduct(Specification specification) {
		return schemeProductDao.checkInSchemeProduct(specification);
	}

}